package com.swg.service;

import com.swg.common.ServerResponse;
import com.swg.vo.CartVo;

/**
 * @Author 【swg】.
 * @Date 2018/1/5 10:02
 * @DESC
 * @CONTACT 317758022@qq.com
 */
public interface CartService {
    ServerResponse<CartVo> add(Integer count, Integer productId, Integer userId);
    ServerResponse<CartVo> update(Integer count,Integer productId,Integer userId);
    ServerResponse<CartVo> deleteProduct(Integer userId,String productIds);
    ServerResponse<CartVo> list(Integer userId);
    ServerResponse<CartVo> selectOrUnSelect(Integer userId,Integer checked,Integer productId);
    ServerResponse<Integer> getCartProductCount(Integer userId);
}
